package com.ftx.controller.test.future;

import java.util.concurrent.CompletableFuture;

/**
 * Created by fengtingxin on 2021/2/2 8:38 下午
 */
public interface AccountService {

    /**
     * 变更账户金额
     * @param account 账户 ID
     * @param amount 增加的金额，负值为减少
     */
    CompletableFuture<Void> add(int account, int amount);
}
